package com.xwyzsn.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.xwyzsn.system.mapper.StallMapper;
import com.xwyzsn.system.domain.Stall;
import com.xwyzsn.system.service.IStallService;

/**
 * 智能柜Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-03-21
 */
@Service
public class StallServiceImpl implements IStallService 
{
    @Autowired
    private StallMapper stallMapper;

    /**
     * 查询智能柜
     * 
     * @param id 智能柜主键
     * @return 智能柜
     */
    @Override
    public Stall selectStallById(Long id)
    {
        return stallMapper.selectStallById(id);
    }

    /**
     * 查询智能柜列表
     * 
     * @param stall 智能柜
     * @return 智能柜
     */
    @Override
    public List<Stall> selectStallList(Stall stall)
    {
        return stallMapper.selectStallList(stall);
    }

    /**
     * 新增智能柜
     * 
     * @param stall 智能柜
     * @return 结果
     */
    @Override
    public int insertStall(Stall stall)
    {
        return stallMapper.insertStall(stall);
    }

    /**
     * 修改智能柜
     * 
     * @param stall 智能柜
     * @return 结果
     */
    @Override
    public int updateStall(Stall stall)
    {
        return stallMapper.updateStall(stall);
    }

    /**
     * 批量删除智能柜
     * 
     * @param ids 需要删除的智能柜主键
     * @return 结果
     */
    @Override
    public int deleteStallByIds(Long[] ids)
    {
        return stallMapper.deleteStallByIds(ids);
    }

    /**
     * 删除智能柜信息
     * 
     * @param id 智能柜主键
     * @return 结果
     */
    @Override
    public int deleteStallById(Long id)
    {
        return stallMapper.deleteStallById(id);
    }
}
